package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.DsmsRegulatorScoreMapper;
import com.csun.dsms.model.domain.DsmsRegulatorScore;
import com.csun.dsms.model.vo.RegulatorScoreVo;
import com.csun.dsms.service.DsmsRegulatorScoreService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DsmsRegulatorScoreServiceImpl extends BaseService<DsmsRegulatorScore> implements DsmsRegulatorScoreService {

    @Resource
    private DsmsRegulatorScoreMapper dsmsRegulatorScoreMapper;

    /*
     *监督人员评价的查询
     * */
    @Override
    public List<RegulatorScoreVo> query(DsmsRegulatorScore dsmsRegulatorScore) {
        return dsmsRegulatorScoreMapper.query(dsmsRegulatorScore);
    }

    /*
     * 查询该监督员所属单位，网格，片区，服务公司
     * */
    @Override
    public DsmsRegulatorScore queryInformation(DsmsRegulatorScore dsmsRegulatorScore) {
        return dsmsRegulatorScoreMapper.queryInformation(dsmsRegulatorScore);
    }
}
